package edu.ubb.scp.model;

import java.lang.reflect.Field;

public class GameBrand implements Model {
	private int GameBrandID;
	private String GameBrandName;

	public GameBrand(String gameBrandName) {
		super();
		GameBrandName = gameBrandName;
	}
	
	public GameBrand() {
		
	}

	public int getGameBrandID() {
		return GameBrandID;
	}

	public void setGameBrandID(int gameBrandID) {
		GameBrandID = gameBrandID;
	}

	public String getGameBrandName() {
		return GameBrandName;
	}

	public void setGameBrandName(String gameBrandName) {
		GameBrandName = gameBrandName;
	}

	@Override
	public String toString() {
		return "GameBrand [GameBrandID=" + GameBrandID + ", GameBrandName="
				+ GameBrandName + "]";
	}

	@Override
	public Field getPrimaryKey() {
		try {
			return GameBrand.class.getDeclaredField("GameBrandID");
		} catch (NoSuchFieldException e) {
			e.printStackTrace();
		} catch (SecurityException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	@Override
	public Field[] getKeys() {
		return new Field[] { getPrimaryKey() };
	}
}
